﻿namespace UI
{
    using System.Windows.Forms;
    using Common.Localization;

    public partial class WaitMessage : UserControl, ILocalizable
    {
        private string message;

        public WaitMessage(string message)
        {
            this.InitializeComponent();
            this.message = message;
            this.Localize();
        }

        public void Localize()
        {
            this.label1.Text = LocalizationProvider.GetMessage(message);
        }
    }
}